@echo off
set APP=jk.exe
set PWD=%cd%

echo "Rebuild by <jmdkina@gmail.com>"

set GOPATH=%GOPATH%;%PWD%
echo "now gopath %GOPATH%"

if exist bin\%APP% del bin\%APP%

cd src
echo "Building %APP%"
go build .

if exist src.exe (
    rename src.exe %APP%
    move %APP% ..\bin\
)
cd ..

pause